import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '类型名称',
    align: 'left',
    dataIndex: 'name'
  },
  {
    title: '类型描述',
    align: 'center',
    dataIndex: 'miaoshu'
  },
  {
    title: '等级',
    align: 'center',
    dataIndex: 'levels_dictText'
  },
  {
    title: '是否有效',
    align: 'center',
    dataIndex: 'isNoValid_dictText'
  },
  {
    title: '首页排序',
    align: 'center',
    dataIndex: 'indexSort'
  },
  {
    title: '栏目排序',
    align: 'center',
    dataIndex: 'columnSort'
  },
];

// 高级查询数据
export const superQuerySchema = {
  name: {title: '类型名称',order: 0,view: 'text', type: 'string',},
  miaoshu: {title: '类型描述',order: 1,view: 'text', type: 'string',},
  levels: {title: '等级',order: 2,view: 'list', type: 'string',dictCode: 'levels_status',},
  isNoValid: {title: '是否有效',order: 3,view: 'radio', type: 'string',dictCode: 'column_status',},
  indexSort: {title: '首页排序',order: 4,view: 'text', type: 'string',},
  columnSort: {title: '栏目排序',order: 5,view: 'text', type: 'string',},
};
